﻿using Meiam.System.Common;
using Meiam.System.Model;
using Meiam.System.Model.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Meiam.System.Core;

namespace Meiam.System.Interfaces
{
    public class EmployeeProductService : BaseService<EmployeeProduct>, IEmployeeProductService
    {
        private ScadaDbContext scadaDbContext;
        public EmployeeProductService()
        {
            scadaDbContext = new ScadaDbContext();
        }

        public object GetOneRowOneColumn(string sql)
        {
            var dt = Db.Ado.GetDataTable(sql);
            if (dt.Rows.Count > 0)
            {
                return dt.Rows[0][0];
            }
            return null;
        }

        public async Task<bool> Run(string shiftParam)
        {
            //1、先查询
            var shifts = shiftParam.Split(',');
            if (DateTime.Now.Hour != int.Parse(shifts[0]) || DateTime.Now.Hour != int.Parse(shifts[1])) return false;

            await Task.Run(() =>
            {
                string startTime = string.Empty;
                string endTime = string.Empty;
                string shift = string.Empty;
               
          
                if (DateTime.Now.Hour == int.Parse(shifts[0]))
                {
                    if (DateTime.Now.Day != 1)
                    {
                        startTime = DateTime.Now.AddDays(-1).ToShortDateString() + " " + shifts[1] + ":00";
                        endTime = DateTime.Now.ToShortDateString() + " " + shifts[0] + ":00";
                        shift = "b";
                    }
                    else
                    {
                        startTime = DateTime.Now.AddDays(-1).ToShortDateString() + " " + shifts[1] + ":00";
                        endTime = DateTime.Now.ToShortDateString() + " " + shifts[0] + ":00";
                        shift = "c";
                    }
                }
                else
                {
                    startTime = DateTime.Now.ToShortDateString() + " " + shifts[0] + ":00";
                    endTime = DateTime.Now.ToShortDateString() + " " + shifts[1] + ":00";
                    shift = "a";
                }

                string sql = @"select h.WorkCenter,h.EmployeeName,h.opration,h.moveinnum182,h.moveinnum210,count(decode(substr(h.KnifeNo,6,3), '182', 1, NULL)) BREAKNUM182,count(decode(substr(h.KnifeNo,6,3), '210', 1, NULL)) BREAKNUM210  from 
                                (select *
                                from (select a1.* FROM 
                                (SELECT count(decode(substr(t1.JBnumber,6,3), '182', 1, NULL)) MoveInNum182,count(decode(substr(t1.JBnumber,6,3), '210', 1, NULL)) MoveInNum210,t1.Opration FROM data_qpj_workflow t1 
                                WHERE t1.F1 LIKE '1' 
                                AND t1.Name like '%Process_strart%' 
                                AND t1.createtime>to_date('" + startTime + @"', 'yyyy-mm-dd hh24:mi:ss') 
                                AND t1.createtime<to_date('" + endTime + @"', 'yyyy-mm-dd hh24:mi:ss') 
                                GROUP BY t1.Opration) a1 
                                left join ZHWIPUSER.Employee d on  a1.opration=d.employeename)k
                                left join 
                                (select f.* 
                                from 
                                (select rank() over(partition by t2.KnifeNo  order by t2.BreakTime) as rowno,t2.*
                                from 
                                ( 
                                with tab1 as 
                                (
                                select   max(d.description)  as WorkCenter ,
                                   '切片机' as DeviceType,
                                   max(a.MachineNo) as MachineNo,
                                   a.JBnumber as KnifeNo,
                                   a.Opration  as WorkId,
                                   max(b.FullName) as EmployeeName,
                                       ( case when  cast(to_char(min(a.createtime),'hh24') as int )<8
                                       then min(t.shift_yesterday) 
                                       when  cast(to_char(min(a.createtime),'hh24') as int )<20
                                       then min(t.shift_day)
                                       else min( t.shift_night) end ) as Shift,
 
                                    (case when  a.aramcode in ('L200') then '线网断线' 
                                    when a.aramcode in ('G187','L201' )then '进线断线'
                                    when a.aramcode in ('G188','L202')  then '收线断线' 
                                     when a.aramcode ='G233'  then '线网断线' 
                                   end) as FaultName,
                                   min(a.Lin_number) as LineBatch,
                                   min(a.Cutting_depth)  CutDeth,
                                   min(a.CreateTime) as BreakTime,
                                   row_number() over(partition by a.JBnumber  order by min(a.CreateTime)) as rowno
                                from  ZHWIPUSER.Employee  b,ZHWIPUSER.resourcedef c,ZHWIPUSER.Location d, data_qpj_alam  a  left join data_shift t on   to_char(a.createtime,'YYYYMMdd') = to_char(t.shift_time,'YYYYMMdd')
                                where a.JBnumber is not null
                                and (a.AramCode in ('L200','L201','L202','G187','G188') 
                                or (a.aramcode ='G233' and  a.machine_status=1)) 
                                and a.Cutting_depth>0 
                                and a.opration=b.employeename
                                and  a.MachineNo=c.resourcename
                                and c.locationid=d.locationid
                                and a.createtime>= to_date('" + startTime + @"', 'yyyy-mm-dd hh24:mi:ss') 
                                and a.createtime<to_date('" + endTime + @"', 'yyyy-mm-dd hh24:mi:ss') 
                                and not exists(
                                select  1  from data_qpj_alam a1
                                where 
                                  (a1.AramCode in  ('L200','L201','L202','G187','G188') 
                                      or (a1.aramcode ='G233' and  a1.machine_status=1))
                                      and a1.createtime<to_date('" + startTime + @"', 'yyyy-mm-dd hh24:mi:ss')  
                                      and a1.jbnumber=a.jbnumber
                                     )
                                group by JBnumber,AramCode ,a.opration)
                                select t1.WorkCenter,
                                       t1.DeviceType,
                                       t1.MachineNo,
                                       t1.KnifeNo,
                                       t1.WorkId,
                                       t1.EmployeeName,
                                       t1.Shift,
                                       t1.FaultName||decode(t2.FaultName,'右断线报警','.右断线报警','') as FaultName,
                                       t1.LineBatch,
                                       t1.CutDeth,
                                       t1.BreakTime
                                from tab1 t1 left join tab1 t2 on t1.KnifeNo=t2.KnifeNo and  t2.rowno=2
                                where     t1.rowno=1    
                                                        )t2
                                 )f where f.rowno=1 
                                )g on k.opration=g.WorkId)h group by h.opration,h.moveinnum182,h.moveinnum210, h.WorkCenter,h.EmployeeName";

                var employeeYieldList = scadaDbContext.ScadaDB.Ado.SqlQuery<EmployeeYield>(sql);
                List<EmployeeProduct> employeeProducts = new List<EmployeeProduct>();

                foreach (var employeeYield in employeeYieldList)
                {
                    if (DateTime.Now.Day == 1)
                    {
                        if (shift == ShiftType.C)
                        {
                            if (DateTime.Now.Month == 1)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year - 1, month = "12", day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year - 1, month = "12", day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year - 1, month = "12", day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year - 1, month = "12", day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 2)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 3)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day28b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day28b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day28b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day28b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 4)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 5)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 6)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 7)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 8)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 9)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 10)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 11)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day31b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                            else if (DateTime.Now.Month == 12)
                            {
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                                employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = (DateTime.Now.Month - 1).ToString(), day30b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            }
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 2)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day1b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 3)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day2b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 4)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day3b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 5)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day4b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 6)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day5b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 7)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day6b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 8)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day7b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 9)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day8b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 10)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day9b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 11)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day10b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 12)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day11b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 13)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day12b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 14)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day13b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 15)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day14b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 16)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day15b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 17)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day16b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 18)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day17b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 19)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day18b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 20)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day19b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 21)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day20b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 22)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day21b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 23)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day22b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 24)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" }); ;
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day23b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 25)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day24b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }

                    }
                    else if (DateTime.Now.Day == 26)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day25b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 27)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day26b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 28)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day27b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 29)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day28b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 30)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day29b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                    else if (DateTime.Now.Day == 31)
                    {
                        if (shift == ShiftType.A)
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day31a = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day31a = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day31a = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day31a = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                        else
                        {
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30b = employeeYield.MoveInNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30b = employeeYield.MoveInNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "0" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30b = employeeYield.BreakNum182, spec = "182", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                            employeeProducts.Add(new EmployeeProduct { year = DateTime.Now.Year, month = DateTime.Now.Month.ToString(), day30b = employeeYield.BreakNum210, spec = "210", employeeid = employeeYield.Opration, name = employeeYield.EmployeeName, workshop = employeeYield.WorkCenter, datatype = "1" });
                        }
                    }
                }

                var tmpEmployeeObj = employeeProducts.Select(r => r.employeeid).Distinct().ToList();
                Update(tmpEmployeeObj, employeeProducts, shift);
            });

            return true;
        }

        public void Update(List<string> employeeobjlist, List<EmployeeProduct> list, string shift)
        {
            List<EmployeeProduct> addlist = new List<EmployeeProduct>();
            List<EmployeeProduct> updatelist = new List<EmployeeProduct>();
            var employeeProductList = Db.Queryable<EmployeeProduct>().ToList();
            var employeeIdList = employeeProductList.Select(r => r.employeeid);
            foreach (var employee in employeeobjlist)
            {
                if (!employeeIdList.Contains(employee))
                {
                    var tmplist = list.Where(r => r.employeeid == employee).ToList();
                    tmplist.ForEach(r => addlist.Add(r));
                }
                else
                {

                    var employeeProducts = employeeProductList.Where(r => r.employeeid == employee).ToList();
                    if (DateTime.Now.Day == 1)
                    {

                    }
                    else if (DateTime.Now.Day == 2)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day2a = tmpObj == null ? 0 : tmpObj.day2a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day2a = tmpObj == null ? 0 : tmpObj.day2a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day2a = tmpObj == null ? 0 : tmpObj.day2a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day2a = tmpObj == null ? 0 : tmpObj.day2a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day1b = tmpObj == null ? 0 : tmpObj.day1b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day1b = tmpObj == null ? 0 : tmpObj.day1b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day1b = tmpObj == null ? 0 : tmpObj.day1b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day1b = tmpObj == null ? 0 : tmpObj.day1b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 3)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day3a = tmpObj == null ? 0 : tmpObj.day3a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day3a = tmpObj == null ? 0 : tmpObj.day3a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day3a = tmpObj == null ? 0 : tmpObj.day3a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day3a = tmpObj == null ? 0 : tmpObj.day3a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day2b = tmpObj == null ? 0 : tmpObj.day2b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day2b = tmpObj == null ? 0 : tmpObj.day2b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day2b = tmpObj == null ? 0 : tmpObj.day2b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day2b = tmpObj == null ? 0 : tmpObj.day2b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 4)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day4a = tmpObj == null ? 0 : tmpObj.day4a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day4a = tmpObj == null ? 0 : tmpObj.day4a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day4a = tmpObj == null ? 0 : tmpObj.day4a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day4a = tmpObj == null ? 0 : tmpObj.day4a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day3b = tmpObj == null ? 0 : tmpObj.day3b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day3b = tmpObj == null ? 0 : tmpObj.day3b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day3b = tmpObj == null ? 0 : tmpObj.day3b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day3b = tmpObj == null ? 0 : tmpObj.day3b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 5)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day5a = tmpObj == null ? 0 : tmpObj.day5a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day5a = tmpObj == null ? 0 : tmpObj.day5a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day5a = tmpObj == null ? 0 : tmpObj.day5a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day5a = tmpObj == null ? 0 : tmpObj.day5a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day4b = tmpObj == null ? 0 : tmpObj.day4b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day4b = tmpObj == null ? 0 : tmpObj.day4b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day4b = tmpObj == null ? 0 : tmpObj.day4b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day4b = tmpObj == null ? 0 : tmpObj.day4b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 6)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day6a = tmpObj == null ? 0 : tmpObj.day6a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day6a = tmpObj == null ? 0 : tmpObj.day6a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day6a = tmpObj == null ? 0 : tmpObj.day6a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day6a = tmpObj == null ? 0 : tmpObj.day6a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day5b = tmpObj == null ? 0 : tmpObj.day5b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day5b = tmpObj == null ? 0 : tmpObj.day5b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day5b = tmpObj == null ? 0 : tmpObj.day5b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day5b = tmpObj == null ? 0 : tmpObj.day5b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 7)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day7a = tmpObj == null ? 0 : tmpObj.day7a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day7a = tmpObj == null ? 0 : tmpObj.day7a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day7a = tmpObj == null ? 0 : tmpObj.day7a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day7a = tmpObj == null ? 0 : tmpObj.day7a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day6b = tmpObj == null ? 0 : tmpObj.day6b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day6b = tmpObj == null ? 0 : tmpObj.day6b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day6b = tmpObj == null ? 0 : tmpObj.day6b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day6b = tmpObj == null ? 0 : tmpObj.day6b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 8)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day8a = tmpObj == null ? 0 : tmpObj.day8a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day8a = tmpObj == null ? 0 : tmpObj.day8a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day8a = tmpObj == null ? 0 : tmpObj.day8a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day8a = tmpObj == null ? 0 : tmpObj.day8a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day7b = tmpObj == null ? 0 : tmpObj.day7b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day7b = tmpObj == null ? 0 : tmpObj.day7b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day7b = tmpObj == null ? 0 : tmpObj.day7b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day7b = tmpObj == null ? 0 : tmpObj.day7b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 9)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day9a = tmpObj == null ? 0 : tmpObj.day9a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day9a = tmpObj == null ? 0 : tmpObj.day9a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day9a = tmpObj == null ? 0 : tmpObj.day9a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day9a = tmpObj == null ? 0 : tmpObj.day9a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day8b = tmpObj == null ? 0 : tmpObj.day8b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day8b = tmpObj == null ? 0 : tmpObj.day8b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day8b = tmpObj == null ? 0 : tmpObj.day8b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day8b = tmpObj == null ? 0 : tmpObj.day8b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 10)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day10a = tmpObj == null ? 0 : tmpObj.day10a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day10a = tmpObj == null ? 0 : tmpObj.day10a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day10a = tmpObj == null ? 0 : tmpObj.day10a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day10a = tmpObj == null ? 0 : tmpObj.day10a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day9b = tmpObj == null ? 0 : tmpObj.day9b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day9b = tmpObj == null ? 0 : tmpObj.day9b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day9b = tmpObj == null ? 0 : tmpObj.day9b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day9b = tmpObj == null ? 0 : tmpObj.day9b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 11)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day11a = tmpObj == null ? 0 : tmpObj.day11a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day11a = tmpObj == null ? 0 : tmpObj.day11a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day11a = tmpObj == null ? 0 : tmpObj.day11a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day11a = tmpObj == null ? 0 : tmpObj.day11a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day10b = tmpObj == null ? 0 : tmpObj.day10b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day10b = tmpObj == null ? 0 : tmpObj.day10b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day10b = tmpObj == null ? 0 : tmpObj.day10b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day10b = tmpObj == null ? 0 : tmpObj.day10b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 12)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day12a = tmpObj == null ? 0 : tmpObj.day12a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day12a = tmpObj == null ? 0 : tmpObj.day12a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day12a = tmpObj == null ? 0 : tmpObj.day12a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day12a = tmpObj == null ? 0 : tmpObj.day12a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day11b = tmpObj == null ? 0 : tmpObj.day11b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day11b = tmpObj == null ? 0 : tmpObj.day11b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day11b = tmpObj == null ? 0 : tmpObj.day11b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day11b = tmpObj == null ? 0 : tmpObj.day11b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 13)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day13a = tmpObj == null ? 0 : tmpObj.day13a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day13a = tmpObj == null ? 0 : tmpObj.day13a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day13a = tmpObj == null ? 0 : tmpObj.day13a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day13a = tmpObj == null ? 0 : tmpObj.day13a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day12b = tmpObj == null ? 0 : tmpObj.day12b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day12b = tmpObj == null ? 0 : tmpObj.day12b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day12b = tmpObj == null ? 0 : tmpObj.day12b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day12b = tmpObj == null ? 0 : tmpObj.day12b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 14)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day14a = tmpObj == null ? 0 : tmpObj.day14a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day14a = tmpObj == null ? 0 : tmpObj.day14a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day14a = tmpObj == null ? 0 : tmpObj.day14a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day14a = tmpObj == null ? 0 : tmpObj.day14a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day13b = tmpObj == null ? 0 : tmpObj.day13b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day13b = tmpObj == null ? 0 : tmpObj.day13b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day13b = tmpObj == null ? 0 : tmpObj.day13b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day13b = tmpObj == null ? 0 : tmpObj.day13b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 15)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day15a = tmpObj == null ? 0 : tmpObj.day15a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day15a = tmpObj == null ? 0 : tmpObj.day15a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day15a = tmpObj == null ? 0 : tmpObj.day15a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day15a = tmpObj == null ? 0 : tmpObj.day15a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day14b = tmpObj == null ? 0 : tmpObj.day14b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day14b = tmpObj == null ? 0 : tmpObj.day14b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day14b = tmpObj == null ? 0 : tmpObj.day14b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day14b = tmpObj == null ? 0 : tmpObj.day14b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 16)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day16a = tmpObj == null ? 0 : tmpObj.day16a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day16a = tmpObj == null ? 0 : tmpObj.day16a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day16a = tmpObj == null ? 0 : tmpObj.day16a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day16a = tmpObj == null ? 0 : tmpObj.day16a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day15b = tmpObj == null ? 0 : tmpObj.day15b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day15b = tmpObj == null ? 0 : tmpObj.day15b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day15b = tmpObj == null ? 0 : tmpObj.day15b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day15b = tmpObj == null ? 0 : tmpObj.day15b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 17)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day17a = tmpObj == null ? 0 : tmpObj.day17a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day17a = tmpObj == null ? 0 : tmpObj.day17a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day17a = tmpObj == null ? 0 : tmpObj.day17a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day17a = tmpObj == null ? 0 : tmpObj.day17a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day16b = tmpObj == null ? 0 : tmpObj.day16b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day16b = tmpObj == null ? 0 : tmpObj.day16b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day16b = tmpObj == null ? 0 : tmpObj.day16b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day16b = tmpObj == null ? 0 : tmpObj.day16b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 18)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day18a = tmpObj == null ? 0 : tmpObj.day18a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day18a = tmpObj == null ? 0 : tmpObj.day18a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day18a = tmpObj == null ? 0 : tmpObj.day18a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day18a = tmpObj == null ? 0 : tmpObj.day18a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day17b = tmpObj == null ? 0 : tmpObj.day17b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day17b = tmpObj == null ? 0 : tmpObj.day17b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day17b = tmpObj == null ? 0 : tmpObj.day17b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day17b = tmpObj == null ? 0 : tmpObj.day17b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 19)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day19a = tmpObj == null ? 0 : tmpObj.day19a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day19a = tmpObj == null ? 0 : tmpObj.day19a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day19a = tmpObj == null ? 0 : tmpObj.day19a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day19a = tmpObj == null ? 0 : tmpObj.day19a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day18b = tmpObj == null ? 0 : tmpObj.day18b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day18b = tmpObj == null ? 0 : tmpObj.day18b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day18b = tmpObj == null ? 0 : tmpObj.day18b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day18b = tmpObj == null ? 0 : tmpObj.day18b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 20)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day20a = tmpObj == null ? 0 : tmpObj.day20a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day20a = tmpObj == null ? 0 : tmpObj.day20a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day20a = tmpObj == null ? 0 : tmpObj.day20a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day20a = tmpObj == null ? 0 : tmpObj.day20a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day19b = tmpObj == null ? 0 : tmpObj.day19b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day19b = tmpObj == null ? 0 : tmpObj.day19b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day19b = tmpObj == null ? 0 : tmpObj.day19b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day19b = tmpObj == null ? 0 : tmpObj.day19b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 21)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day21a = tmpObj == null ? 0 : tmpObj.day21a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day21a = tmpObj == null ? 0 : tmpObj.day21a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day21a = tmpObj == null ? 0 : tmpObj.day21a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day21a = tmpObj == null ? 0 : tmpObj.day21a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day20b = tmpObj == null ? 0 : tmpObj.day20b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day20b = tmpObj == null ? 0 : tmpObj.day20b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day20b = tmpObj == null ? 0 : tmpObj.day20b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day20b = tmpObj == null ? 0 : tmpObj.day20b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 22)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day22a = tmpObj == null ? 0 : tmpObj.day22a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day22a = tmpObj == null ? 0 : tmpObj.day22a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day22a = tmpObj == null ? 0 : tmpObj.day22a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day22a = tmpObj == null ? 0 : tmpObj.day22a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day21b = tmpObj == null ? 0 : tmpObj.day21b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day21b = tmpObj == null ? 0 : tmpObj.day21b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day21b = tmpObj == null ? 0 : tmpObj.day21b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day21b = tmpObj == null ? 0 : tmpObj.day21b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 23)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day23a = tmpObj == null ? 0 : tmpObj.day23a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day23a = tmpObj == null ? 0 : tmpObj.day23a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day23a = tmpObj == null ? 0 : tmpObj.day23a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day23a = tmpObj == null ? 0 : tmpObj.day23a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day22b = tmpObj == null ? 0 : tmpObj.day22b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day22b = tmpObj == null ? 0 : tmpObj.day22b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day22b = tmpObj == null ? 0 : tmpObj.day22b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day22b = tmpObj == null ? 0 : tmpObj.day22b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 24)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day24a = tmpObj == null ? 0 : tmpObj.day24a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day24a = tmpObj == null ? 0 : tmpObj.day24a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day24a = tmpObj == null ? 0 : tmpObj.day24a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day24a = tmpObj == null ? 0 : tmpObj.day24a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day23b = tmpObj == null ? 0 : tmpObj.day23b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day23b = tmpObj == null ? 0 : tmpObj.day23b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day23b = tmpObj == null ? 0 : tmpObj.day23b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day23b = tmpObj == null ? 0 : tmpObj.day23b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 25)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day25a = tmpObj == null ? 0 : tmpObj.day25a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day25a = tmpObj == null ? 0 : tmpObj.day25a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day25a = tmpObj == null ? 0 : tmpObj.day25a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day25a = tmpObj == null ? 0 : tmpObj.day25a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day24b = tmpObj == null ? 0 : tmpObj.day24b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day24b = tmpObj == null ? 0 : tmpObj.day24b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day24b = tmpObj == null ? 0 : tmpObj.day24b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day24b = tmpObj == null ? 0 : tmpObj.day24b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 26)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day26a = tmpObj == null ? 0 : tmpObj.day26a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day26a = tmpObj == null ? 0 : tmpObj.day26a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day26a = tmpObj == null ? 0 : tmpObj.day26a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day26a = tmpObj == null ? 0 : tmpObj.day26a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day25b = tmpObj == null ? 0 : tmpObj.day25b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day25b = tmpObj == null ? 0 : tmpObj.day25b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day25b = tmpObj == null ? 0 : tmpObj.day25b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day25b = tmpObj == null ? 0 : tmpObj.day25b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 27)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day27a = tmpObj == null ? 0 : tmpObj.day27a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day27a = tmpObj == null ? 0 : tmpObj.day27a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day27a = tmpObj == null ? 0 : tmpObj.day27a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day27a = tmpObj == null ? 0 : tmpObj.day27a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day26b = tmpObj == null ? 0 : tmpObj.day26b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day26b = tmpObj == null ? 0 : tmpObj.day26b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day26b = tmpObj == null ? 0 : tmpObj.day26b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day26b = tmpObj == null ? 0 : tmpObj.day26b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 28)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day28a = tmpObj == null ? 0 : tmpObj.day28a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day28a = tmpObj == null ? 0 : tmpObj.day28a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day28a = tmpObj == null ? 0 : tmpObj.day28a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day28a = tmpObj == null ? 0 : tmpObj.day28a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day27b = tmpObj == null ? 0 : tmpObj.day27b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day27b = tmpObj == null ? 0 : tmpObj.day27b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day27b = tmpObj == null ? 0 : tmpObj.day27b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day27b = tmpObj == null ? 0 : tmpObj.day27b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 29)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day29a = tmpObj == null ? 0 : tmpObj.day29a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day29a = tmpObj == null ? 0 : tmpObj.day29a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day29a = tmpObj == null ? 0 : tmpObj.day29a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day29a = tmpObj == null ? 0 : tmpObj.day29a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day28b = tmpObj == null ? 0 : tmpObj.day28b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day28b = tmpObj == null ? 0 : tmpObj.day28b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day28b = tmpObj == null ? 0 : tmpObj.day28b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day28b = tmpObj == null ? 0 : tmpObj.day28b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else if (DateTime.Now.Day == 30)
                    {
                        if (shift == ShiftType.A)
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day30a = tmpObj == null ? 0 : tmpObj.day30a;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day30a = tmpObj == null ? 0 : tmpObj.day30a;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day30a = tmpObj == null ? 0 : tmpObj.day30a;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day30a = tmpObj == null ? 0 : tmpObj.day30a;
                                updatelist.Add(breakup210obj);
                            }
                        }
                        else
                        {
                            var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                            if (movein182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                                movein182obj.day29b = tmpObj == null ? 0 : tmpObj.day29b;
                                updatelist.Add(movein182obj);
                            }
                            if (movein210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                                movein210obj.day29b = tmpObj == null ? 0 : tmpObj.day29b;
                                updatelist.Add(movein210obj);
                            }

                            if (breakup182obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                                breakup182obj.day29b = tmpObj == null ? 0 : tmpObj.day29b;
                                updatelist.Add(breakup182obj);
                            }

                            if (breakup210obj != null)
                            {
                                var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                                breakup210obj.day29b = tmpObj == null ? 0 : tmpObj.day29b;
                                updatelist.Add(breakup210obj);
                            }
                        }
                    }
                    else
                    {
                        var movein182obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "182").FirstOrDefault();
                        var movein210obj = employeeProducts.Where(r => r.datatype == "0" && r.spec == "210").FirstOrDefault();
                        var breakup182obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "182").FirstOrDefault();
                        var breakup210obj = employeeProducts.Where(r => r.datatype == "1" && r.spec == "210").FirstOrDefault();

                        if (movein182obj != null)
                        {
                            var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "182").FirstOrDefault();
                            movein182obj.day31a = tmpObj == null ? 0 : tmpObj.day31a;
                            updatelist.Add(movein182obj);
                        }
                        if (movein210obj != null)
                        {
                            var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "0" && r.spec == "210").FirstOrDefault();
                            movein210obj.day31a = tmpObj == null ? 0 : tmpObj.day31a;
                            updatelist.Add(movein210obj);
                        }

                        if (breakup182obj != null)
                        {
                            var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "182").FirstOrDefault();
                            breakup182obj.day31a = tmpObj == null ? 0 : tmpObj.day31a;
                            updatelist.Add(breakup182obj);
                        }

                        if (breakup210obj != null)
                        {
                            var tmpObj = list.Where(r => r.employeeid == employee && r.datatype == "1" && r.spec == "210").FirstOrDefault();
                            breakup210obj.day31a = tmpObj == null ? 0 : tmpObj.day31a;
                            updatelist.Add(breakup210obj);
                        }

                    }
                }
            }

            base.Add(addlist);
            base.Update(updatelist);
        }
    }
}
